<?php

class User_Plugin_Feed
{
	function signup($item, $spec)
	{
		$headline = ':poster signup to our network!';
		$poster = $item -> getPoster();

		return strtr($headline, array(':poster' => $poster -> toCardhoverLink()));
	}

	function updateStatus($item, $spec)
	{
		$headline = ':poster update his/her status!';
		$poster = $item -> getPoster();

		return strtr($headline, array(':poster' => $poster -> toCardhoverLink()));
	}

	function beFriend($item, $spec)
	{

		$headline = ':poster be friend with :object!';
		$poster = $item -> getPoster();
		$object = $item -> getObject();

		return strtr($headline, array(
			':poster' => $poster -> toCardhoverLink(),
			':object' => $object-> toCardhoverLink()
		));

	}

}
